//playLocation keeps track of a location on the main board. 
public class GridLocation 
{
	//location of subGrid (on mainGrid) on which play occurs
	private int boardRow; 
	private int boardCol; 
	
	//location within subGrid 
	private int row; 
	private int col; 
	
	public GridLocation( int br, int bc, int r, int c )
	{
		boardRow = br;
		boardCol = bc; 
		row = r; 
		col = c; 
	}
	
	public int getBoardRow()
	{
		return boardRow; 
	}
	
	public int getBoardCol()
	{
		return boardCol; 
	}
	
	public int getRow()
	{
		return row;
	}
	
	public int getCol()
	{
		return col; 
	}
	
	public void setRow(int r)
	{
		row = r;
	}
	
	public void setCol(int c)
	{
		col = c; 
	}
	
	@Override
	public boolean equals( Object obj )
	{
		GridLocation other = (GridLocation)obj; 
		return boardRow == other.getBoardRow() && boardCol == other.getBoardCol() 
				&& row == other.getRow() && col == other.getCol(); 
	}
	
	@Override
	public String toString()
	{
		return("("+boardRow+", "+boardCol+", "+row+", "+col+")");
	}
}
